package com.taiji.service.impl;

import com.taiji.domain.Payment;
import com.taiji.mapper.PayMapper;
import com.taiji.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PayMapper mapper;

    @Override
    public int create(Payment payment) {
        return mapper.create(payment);
    }

    @Override
    public Payment getPaymentById(long id) {
        return mapper.getPaymentById(id);
    }
}
